﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hometask_Flights_Class
{
    class Flight
    {
        public string destination;
        public string flightNumber;
        public string planeModel;
        public float travelTime;

        public void FillFlightInfo()
        {
            Console.WriteLine("Enter a destination:");
            destination = Console.ReadLine();
            Console.WriteLine("Enter flight no.:");
            flightNumber = Console.ReadLine();
            Console.WriteLine("Boeing? Airbus? Douglas? Tupolev? Else???");
            planeModel = Console.ReadLine();
            Console.WriteLine("Enter travel time:");
            travelTime = float.Parse(Console.ReadLine());
        }

        public void PrintFlightInfo()
        {
            Console.WriteLine("Flight to: {0}, no. {1}\nAirplane: {2}\nTravel time: {3}", destination, flightNumber, planeModel, travelTime);
        }
    }
}
